/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 */

#define _CRT_SECURE_NO_WARNINGS

#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;



int main(void)
{
    char str[] = "hello";
    char* str2 = "hello";

    printf("%d\n", strlen(str));
    printf("%d\n", strlen(str2));

    printf("%d\n", sizeof(str));   // 输出结果为 6
    printf("%d\n", sizeof(str2));  // 输出结果为 4 或者 8

    return 0;
}

